const baseURL='http://localhost:6789';
const http=(options)=>{
 return new Promise((resolve,reject)=>{
  uni.request({
   url:baseURL+options.url,
   method:options.method || 'get',
   data:options.data || '{}',
   success:function(res){
	console.log(res)
    resolve(res);
   },
   fail:function(err){
    reject(err);
   }
  })
 })
}
export default http;
